package Animal;

/**
 * @Author liangzai
 * @Description:
 */
public class Test2 {
    public static void func(Animal animal){
        animal.eat();
    }

    public static void main(String[] args) {
        Dog dog = new Dog("大黄",10);
        func(dog);
        System.out.println("================");
        Bird bird = new Bird("愤怒的小鸟",12);
        func(bird);
    }
}
